package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_confirmDeleteEntity_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_confirmDeleteEntity_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_2_39 = new TagInfo("c:get", //$NON-NLS-1$
            2, 39,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_37 = new TagInfo("c:get", //$NON-NLS-1$
            3, 37,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_116 = new TagInfo("c:get", //$NON-NLS-1$
            3, 116,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_206 = new TagInfo("c:get", //$NON-NLS-1$
            3, 206,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_7 = new TagInfo("c:get", //$NON-NLS-1$
            6, 7,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_65 = new TagInfo("c:get", //$NON-NLS-1$
            6, 65,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_119 = new TagInfo("c:get", //$NON-NLS-1$
            6, 119,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_177 = new TagInfo("c:get", //$NON-NLS-1$
            6, 177,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_240 = new TagInfo("c:get", //$NON-NLS-1$
            6, 240,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_7 = new TagInfo("c:get", //$NON-NLS-1$
            7, 7,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_70 = new TagInfo("c:get", //$NON-NLS-1$
            7, 70,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_124 = new TagInfo("c:get", //$NON-NLS-1$
            7, 124,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_195 = new TagInfo("c:get", //$NON-NLS-1$
            7, 195,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_253 = new TagInfo("c:get", //$NON-NLS-1$
            7, 253,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_9_16 = new TagInfo("c:get", //$NON-NLS-1$
            9, 16,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_40 = new TagInfo("c:get", //$NON-NLS-1$
            10, 40,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_13_10 = new TagInfo("c:get", //$NON-NLS-1$
            13, 10,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_13_82 = new TagInfo("c:get", //$NON-NLS-1$
            13, 82,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_48 = new TagInfo("c:get", //$NON-NLS-1$
            14, 48,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_15_40 = new TagInfo("c:get", //$NON-NLS-1$
            15, 40,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_18_31 = new TagInfo("c:get", //$NON-NLS-1$
            18, 31,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_20_33 = new TagInfo("c:get", //$NON-NLS-1$
            20, 33,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("\t@RequestMapping(value=\"/confirmDelete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_2_39 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_39); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_2_39.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_2_39.setTagInfo(_td_c_get_2_39);
            _jettag_c_get_2_39.doStart(context, out);
            _jettag_c_get_2_39.doEnd();
            out.write("s\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic   ModelAndView confirmDelete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_37 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_37); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_37.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_37.setTagInfo(_td_c_get_3_37);
            _jettag_c_get_3_37.doStart(context, out);
            _jettag_c_get_3_37.doEnd();
            out.write("s(@RequestParam(value=\"delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_116 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_116); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_116.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_116.setTagInfo(_td_c_get_3_116);
            _jettag_c_get_3_116.doStart(context, out);
            _jettag_c_get_3_116.doEnd();
            out.write("sIds\",required=true) Set<Integer> delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_206 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_206); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_206.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_206.setTagInfo(_td_c_get_3_206);
            _jettag_c_get_3_206.doStart(context, out);
            _jettag_c_get_3_206.doEnd();
            out.write("sIds) {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tModelAndView  mav = new ModelAndView();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tSet<");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_7); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_7.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_7.setTagInfo(_td_c_get_6_7);
            _jettag_c_get_6_7.doStart(context, out);
            _jettag_c_get_6_7.doEnd();
            out.write("> delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_65 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_65); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_65.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_65.setTagInfo(_td_c_get_6_65);
            _jettag_c_get_6_65.doStart(context, out);
            _jettag_c_get_6_65.doEnd();
            out.write("s = ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_119 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_119); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_119.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_119.setTagInfo(_td_c_get_6_119);
            _jettag_c_get_6_119.doStart(context, out);
            _jettag_c_get_6_119.doEnd();
            out.write("DAO.find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_177 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_177); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_177.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_177.setTagInfo(_td_c_get_6_177);
            _jettag_c_get_6_177.doStart(context, out);
            _jettag_c_get_6_177.doEnd();
            out.write("sByIds(delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_240 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_240); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_240.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_240.setTagInfo(_td_c_get_6_240);
            _jettag_c_get_6_240.doStart(context, out);
            _jettag_c_get_6_240.doEnd();
            out.write("sIds);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tSet<");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_7); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_7.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_7.setTagInfo(_td_c_get_7_7);
            _jettag_c_get_7_7.doStart(context, out);
            _jettag_c_get_7_7.doEnd();
            out.write(">  referenced");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_70 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_70); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_70.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_70.setTagInfo(_td_c_get_7_70);
            _jettag_c_get_7_70.doStart(context, out);
            _jettag_c_get_7_70.doEnd();
            out.write("s = ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_124 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_124); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_124.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_124.setTagInfo(_td_c_get_7_124);
            _jettag_c_get_7_124.doStart(context, out);
            _jettag_c_get_7_124.doEnd();
            out.write("Service.loadReference");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_195 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_195); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_195.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_195.setTagInfo(_td_c_get_7_195);
            _jettag_c_get_7_195.doStart(context, out);
            _jettag_c_get_7_195.doEnd();
            out.write("s(delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_7_253 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_253); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_7_253.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_7_253.setTagInfo(_td_c_get_7_253);
            _jettag_c_get_7_253.doStart(context, out);
            _jettag_c_get_7_253.doEnd();
            out.write("s);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tboolean  hasReferenced;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tif(referenced");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_9_16 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_9_16); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_9_16.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_9_16.setTagInfo(_td_c_get_9_16);
            _jettag_c_get_9_16.doStart(context, out);
            _jettag_c_get_9_16.doEnd();
            out.write("s.size() == 0) {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tmav.addObject(\"deleteEntitys\",delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_10_40 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_40); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_10_40.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_10_40.setTagInfo(_td_c_get_10_40);
            _jettag_c_get_10_40.doStart(context, out);
            _jettag_c_get_10_40.doEnd();
            out.write("s);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\thasReferenced = false;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t}else {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tdelete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_13_10 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_13_10); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_13_10.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_13_10.setTagInfo(_td_c_get_13_10);
            _jettag_c_get_13_10.doStart(context, out);
            _jettag_c_get_13_10.doEnd();
            out.write("s.removeAll(referenced");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_13_82 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_13_82); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_13_82.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_13_82.setTagInfo(_td_c_get_13_82);
            _jettag_c_get_13_82.doStart(context, out);
            _jettag_c_get_13_82.doEnd();
            out.write("s);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tmav.addObject(\"referencedEntitys\",referenced");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_14_48 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_48); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_14_48.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_14_48.setTagInfo(_td_c_get_14_48);
            _jettag_c_get_14_48.doStart(context, out);
            _jettag_c_get_14_48.doEnd();
            out.write("s);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tmav.addObject(\"deleteEntitys\",delete");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_15_40 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_15_40); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_15_40.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_15_40.setTagInfo(_td_c_get_15_40);
            _jettag_c_get_15_40.doStart(context, out);
            _jettag_c_get_15_40.doEnd();
            out.write("s);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\thasReferenced  = true;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"entityName\",\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_18_31 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_18_31); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_18_31.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_18_31.setTagInfo(_td_c_get_18_31);
            _jettag_c_get_18_31.doStart(context, out);
            _jettag_c_get_18_31.doEnd();
            out.write("\");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.addObject(\"hasReferenced\",hasReferenced);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\tmav.setViewName(\"forward:/list");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_20_33 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_20_33); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_20_33.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_20_33.setTagInfo(_td_c_get_20_33);
            _jettag_c_get_20_33.doStart(context, out);
            _jettag_c_get_20_33.doEnd();
            out.write("s\");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\treturn mav;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
    }
}
